clear all

** Set working directory: please set your own
/*
cd "~/Dropbox/sanctions_replication/"
*/
** Open dataset
* Open dataset
use data/survey_clean.dta, clear

regr sanct_phis_vox_num fear_vox_num fear_age fear_woman fear_spanish female_dummy age_calculated college spanish, r
est store phys_appropriate_vox_1

regr sanct_phis_vox_num fear_vox_num fear_age fear_woman fear_spanish female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia if ccaa != "NA", r
est store phys_appropriate_vox_2

* Make table
esttab phys_appropriate_vox_1 phys_appropriate_vox_2 using tables/tableb2.tex, nomtitles ///
coeflabels(female_dummy "Female (dummy)" age_calculated "Age" college "College" spanish "Spanish" ///
 fear_vox_num "Fear" fear_age "Fear x Age" fear_woman "Fear x Female" fear_spanish "Fear x Spanish" ///
 canarias "Canarias" murcia "Murcia" ///
 andalucia "Andalucia" balears "Balears" valencia "Valencia" cataluna "Catalunya" ///
extremadura "Extremadura" castilla_mancha "Castilla La Mancha" castilla_leon "Castilla y Leon" ///
aragon "Aragon" rioja "Rioja" navarra "Navarra" pais_vasco "Basque country" ///
cantabria "Cantabria" asturias "Asturias" galicia "Galicia" _cons "Constant") se ///
replace addnotes("Standard errors are robust")

